<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>边框</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: gold;
            margin-bottom: 10px;
        }

        div.box1 {
            border: 2px solid #000000;
        }
        div.box2 {
            border: 2px dashed #000000;
        }
        div.box3 {
            border: 2px dotted #000000;
        }
        div.box4{
            border-width: 2px;
            border-style: dotted;
            border-color: #000000;
        }
        div.box5{
            border: 2px solid #000000;
            border-right-color: green;
        }
        div.box6{
            border: 2px solid #000000;
            border-right: none;
        }
    </style>
</head>

<body>
    <div class="box1"> border solid </div>
    <div class="box2"> border dashed </div>
    <div class="box3"> border solid </div>
    <div class="box4"> 其它写法 </div>
    <div class="box5"> 特制颜色 </div>
    <div class="box6">没有右边框</div>
</body>

</html>